package Summative;

import javax.swing.*;
import java.awt.*;

public class MainPanel extends JPanel
{
  public MainPanel(Menu menu)
  {
    super();
    setPreferredSize(new Dimension(500, 500));
    setLayout(new BorderLayout());
    
    ViewPanel panel = new ViewPanel();
    add(panel, BorderLayout.CENTER);
    MenuItemList list = new MenuItemList(menu);
    VectorList vectors = new VectorList(panel, menu, list);
    
    TextPanel txtPanel = new TextPanel(vectors, list);
    add(txtPanel, BorderLayout.SOUTH);
    
    setFocusable(true);
  }
}
